---
const className = Astro.url.pathname.startsWith(Astro.props.href) ? "active" : "";
---
<a href={Astro.props.href} class={className}><slot /></a>
